﻿define('routeConfig',
    ['jquery', 'presenter'],
    function ($, presenter) {
        var
        goToConfigurationsView = function () {
            presenter.transitionTo($("#currentView"));
        },
        selectRoute = function (viewName) {
            presenter.transitionTo($("#" + viewName));
        },
        setStartRoute = function () {
            goToConfigurationsView();
        };
        return {
            goToConfigurationsView: goToConfigurationsView,
            setStartRoute: setStartRoute,
            selectRoute: selectRoute
        };
    });